#pragma once
#include "Object.h"
class Sphere :public Object
{
public:
	Sphere();
	Sphere(const Vector3f& center, float radius);
	~Sphere();
	void draw() const;
	void undraw() const;
	BBox getBBox() const;
	Vector3f getCentroid() const;
private:
	int slices = 16, stacks = 16;
	float r, r2;
	Vector3f center;
};

